package ec.edu.ucacue.siop.modelo.contEstProc;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ec.edu.ucacue.siop.modelo.recurso.VariableAlimentacion;
import ec.edu.ucacue.siop.modelo.recurso.VariableCalidad;
import ec.edu.ucacue.siop.modelo.recurso.VariableProceso;

/**
 * 
 * @author echacon
 * Informacion estadistica de una variable para el control de procesos
 */

@Entity
@Table(name = "estadistica_var")
public class EstadisticaVariable implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	private long id;
	@ManyToOne
	private VariableProceso varPro;
	@ManyToOne
	private VariableCalidad varCal;
	@ManyToOne
	private VariableAlimentacion varAl;
	private double media;
	private double desvEstand;
	private double mediaGeometrica;
	private double mediana;
	private double max;
	private double min;
	private long nroVar;
	private Calendar fi;
	private Calendar ff;
	private boolean diaria;
	private boolean semanal;
	private boolean mensual;
	private boolean anual;
	private boolean especial;
	@Column(length=32)
	private String grafControl;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public VariableProceso getVarPro() {
		return varPro;
	}
	public void setVarPro(VariableProceso varPro) {
		this.varPro = varPro;
	}
	public VariableCalidad getVarCal() {
		return varCal;
	}
	public void setVarCal(VariableCalidad varCal) {
		this.varCal = varCal;
	}
	public VariableAlimentacion getVarAl() {
		return varAl;
	}
	public void setVarAl(VariableAlimentacion varAl) {
		this.varAl = varAl;
	}
	public double getMedia() {
		return media;
	}
	public void setMedia(double media) {
		this.media = media;
	}
	public double getDesvEstand() {
		return desvEstand;
	}
	public void setDesvEstand(double desvEstand) {
		this.desvEstand = desvEstand;
	}
	public double getMediaGeometrica() {
		return mediaGeometrica;
	}
	public void setMediaGeometrica(double mediaGeometrica) {
		this.mediaGeometrica = mediaGeometrica;
	}
	public double getMediana() {
		return mediana;
	}
	public void setMediana(double mediana) {
		this.mediana = mediana;
	}
	public double getMax() {
		return max;
	}
	public void setMax(double max) {
		this.max = max;
	}
	public double getMin() {
		return min;
	}
	public void setMin(double min) {
		this.min = min;
	}
	public long getNroVar() {
		return nroVar;
	}
	public void setNroVar(long nroVar) {
		this.nroVar = nroVar;
	}
	public Calendar getFi() {
		return fi;
	}
	public void setFi(Calendar fi) {
		this.fi = fi;
	}
	public Calendar getFf() {
		return ff;
	}
	public void setFf(Calendar ff) {
		this.ff = ff;
	}
	public boolean isDiaria() {
		return diaria;
	}
	public void setDiaria(boolean diaria) {
		this.diaria = diaria;
	}
	public boolean isSemanal() {
		return semanal;
	}
	public void setSemanal(boolean semanal) {
		this.semanal = semanal;
	}
	public boolean isMensual() {
		return mensual;
	}
	public void setMensual(boolean mensual) {
		this.mensual = mensual;
	}
	public boolean isAnual() {
		return anual;
	}
	public void setAnual(boolean anual) {
		this.anual = anual;
	}
	public boolean isEspecial() {
		return especial;
	}
	public void setEspecial(boolean especial) {
		this.especial = especial;
	}
}
